﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WCFMINERP.Order.Forms
{
    public partial class FrmSetting : Form
    {
        public FrmSetting()
        {
            InitializeComponent();
        }

        private void FrmSetting_Load(object sender, EventArgs e)
        {
            txtMaxDailyProductShowNum.Text = Properties.Settings.Default.ShowDailyProductNum.ToString();
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            try
            {
                Properties.Settings.Default.ShowDailyProductNum = Convert.ToUInt32(txtMaxDailyProductShowNum.Text.Trim());
                Properties.Settings.Default.Save();
                MessageBox.Show("保存成功","提示",MessageBoxButtons.OK,MessageBoxIcon.Information);
                this.Close();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }


        }
    }
}
